package com.design.ObserverMode.syncMode;

import com.design.ObserverMode.demo.User;
import com.design.ObserverMode.mode.MyRegObserver;

public class MsgNotificationObserver implements MyRegObserver {
    @Override
    public void regHandler(User user) {
        new Thread(()->{
            System.out.println("给用户推送一条系统消息，消息的内容为用户指南！；执行参数："+user);
        });
    }
}
